Expose rustc cfg values to build scripts
authorAlex Crichton <alex@alexcrichton.com>
Mon, 31 Oct 2016 23:20:38 +0000 (16:20 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 2 Nov 2016 23:24:32 +0000 (16:24 -0700)
commit23587ee744ebd0f85714529f9c956b10803c4be8
treea3375898927eec728e8a06010ab737043fcd8dda
parent717adc8236ba63f3576ffa10056bca00e8ae1831
Expose rustc cfg values to build scripts

This commit is Cargo's portion of the implementation of [RFC 1721] where it will
expose values printed by `rustc --print cfg` to build scripts.

[RFC 1721]: https://github.com/rust-lang/rfcs/blob/master/text/1721-crt-static.md

This will in turn be used to communicate features like `-C
target-feature=+crt-static` which can be used to compile objects for statically
linking against the msvcrt on MSVC.
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/custom_build.rs
tests/build-script.rs